//
//  IntegralTableViewCell.m
//  YaoHeAPP
//
//  Created by 杨亚森 on 16/5/12.
//  Copyright © 2016年 mac. All rights reserved.
//

#import "IntegralTableViewCell.h"
#import "integralModel.h"

@interface IntegralTableViewCell ()

@property (nonatomic, strong) UILabel *integralLabel;

@end

@implementation IntegralTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.selectionStyle = UITableViewCellSelectionStyleNone;
        
        _integralLabel = [[UILabel alloc] initWithFrame:CGRectMake(SCREEN_WIDTH-70, 10, 50, 20)];
        _integralLabel.font = Font(15);
        _integralLabel.textAlignment = NSTextAlignmentRight;
        _integralLabel.textColor = [UIColor redColor];
        [self.contentView addSubview:_integralLabel];
    }
    return self;
}

- (void)setIntegralModel:(IntegralModel *)integralModel {
    _integralModel = integralModel;
    
    self.textLabel.font = Font(13);
    self.textLabel.text = integralModel.TYPE_NAME;
    self.detailTextLabel.font = Font(11);
    self.detailTextLabel.text = integralModel.CREATE_TIME;
    self.integralLabel.text = integralModel.POINT_SCORE;
}

@end
